package com.bsoft.gol.hcs.satisfyStatic.entity;

import javax.persistence.*;

/**
 * 满意度调查统计报表管理拓展属性详情
 * Created by ChenJij on 2022/7/25.
 */
@Entity
@Table(name = "ods_satisfy_statistic_extra_detail")
public class OdsSatisfyStatisticExtraDetail {
    private String extraDetailId;
    private String settingId;
    private String statisticExtraId;
    private String titleId;
    private String titleName;
    private int sort;

    @Id
    @Column(name = "extra_detail_id", nullable = false)
    public String getExtraDetailId() {
        return extraDetailId;
    }

    public void setExtraDetailId(String extraDetailId) {
        this.extraDetailId = extraDetailId;
    }


    @Basic
    @Column(name = "setting_id", nullable = false)
    public String getSettingId() {
        return settingId;
    }

    public void setSettingId(String settingId) {
        this.settingId = settingId;
    }


    @Basic
    @Column(name = "statistic_extra_id", nullable = false)
    public String getStatisticExtraId() {
        return statisticExtraId;
    }

    public void setStatisticExtraId(String statisticExtraId) {
        this.statisticExtraId = statisticExtraId;
    }

    @Basic
    @Column(name = "title_id", nullable = false, length = 1)
    public String getTitleId() {
        return titleId;
    }

    public void setTitleId(String titleId) {
        this.titleId = titleId;
    }

    @Basic
    @Column(name = "title_name", nullable = false, length = 36)
    public String getTitleName() {
        return titleName;
    }

    public void setTitleName(String titleName) {
        this.titleName = titleName;
    }

    @Basic
    @Column(name = "sort")
    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof OdsSatisfyStatisticExtraDetail)) return false;

        OdsSatisfyStatisticExtraDetail that = (OdsSatisfyStatisticExtraDetail) o;

        if (sort != that.sort) return false;
        if (extraDetailId != null ? !extraDetailId.equals(that.extraDetailId) : that.extraDetailId != null)
            return false;
        if (settingId != null ? !settingId.equals(that.settingId) : that.settingId != null) return false;
        if (statisticExtraId != null ? !statisticExtraId.equals(that.statisticExtraId) : that.statisticExtraId != null)
            return false;
        if (titleId != null ? !titleId.equals(that.titleId) : that.titleId != null) return false;
        return titleName != null ? titleName.equals(that.titleName) : that.titleName == null;
    }

    @Override
    public int hashCode() {
        int result = extraDetailId != null ? extraDetailId.hashCode() : 0;
        result = 31 * result + (settingId != null ? settingId.hashCode() : 0);
        result = 31 * result + (statisticExtraId != null ? statisticExtraId.hashCode() : 0);
        result = 31 * result + (titleId != null ? titleId.hashCode() : 0);
        result = 31 * result + (titleName != null ? titleName.hashCode() : 0);
        result = 31 * result + sort;
        return result;
    }
}